<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
        <h3 align="center"> 欢迎 Index Page</h3>
        <h3 align="center">  欢迎[<shiro:principal/>]登录</h3>
    <br><br>
        <shiro:hasRole name="admin">
            <br><br><a href="/admin">Admin</a>
        </shiro:hasRole>

        <shiro:hasRole name="user">
            <br><br><a href="/user">User</a>
        </shiro:hasRole>

        <shiro:hasPermission  name="sys:view:user">
            <br><br><a href="/user">View</a>
        </shiro:hasPermission >

        <shiro:hasPermission  name="sys:edit:user">
            <br><br><a href="/admin">Edit</a>
        </shiro:hasPermission >



        <br><br><a href="/logout">Logout</a>
</body>
</html>